#ifndef SOCKETRUNNABLE_H
#define SOCKETRUNNABLE_H
#include <epicsThread.h>
#include <epicsEvent.h>
#include "epicsRingBytes.h"
#include "EventData.hpp"
#include <epicsEvent.h>
#include "EventData.hpp"
#include "TcpClient.hpp"
//#include "NeutronPulseFilter.hpp"
//#define RecieveBufferSize 10240
//#define DataLengthEvery 80
class SocketRunnable: public epicsThreadRunable {
public:
	SocketRunnable(TcpSocketDataInfo *);
	void run();
	// void printBuffer();
	// void findEventPackage();
private:
	bool do_recv;
	TcpClient client;
	TcpSocketDataInfo *pTcpSocketDataInfo;
	epicsThread *pDataRingConsumeThread;
};



#endif